package com.syedu.day03.homework;

/**
 * description：99乘法表
 * @author Administrator
 * @date 2022/3/8 17:12
 */
public class Print99 {
    public static void main(String[] args) {
        /*for (int i = 1; i <= 9; i++) {
            for (int j = 1; j <= i; j++) {
                System.out.print(j + "*" + i + "=" + (i * j) + "\t");
            }
            System.out.println();
        }*/

        for (int i = 1, j = 1; j <= 9; i++) {
            System.out.print(i + "*" + j + "=" + i * j + "\t");
            if(i == j){
                i = 0;
                j++;
                System.out.println();
            }
        }
    }
}